/*
 * dthttp.h
 *
 *  Created on: 2010-11-17
 *      Author: zhzuo
 */

#ifndef DTHTTP_H_
#define DTHTTP_H_
#include <QtNetwork>
#include <QNetworkAccessManager>
#include <QNetworkReply>
#include <QMessageBox>

enum DtHttpMethod{POST,GET};

class DtHttp{
public:
	DtHttp(const QUrl& u,DtHttpMethod m,QObject* recver=0,const QByteArray& d=0);
	~DtHttp();
	QNetworkAccessManager * Send();
	QNetworkAccessManager * GetNam();
private:
	DtHttpMethod method;
    QNetworkAccessManager *nam;
    QObject* parent;
	QUrl* url;
	QByteArray data;
};


#endif /* DTHTTP_H_ */
